//
// Created by Tony on 2024/8/3.
//

#ifndef PARSER_IMPORT_STMT_H
#define PARSER_IMPORT_STMT_H

#include "../../AstList.h"
#include "../../leaf/Name.h"

namespace Parser {

class ImportStmt : public AstList {
    string nodeName;

public:
    explicit ImportStmt(const vector<shared_ptr<Ast>>& children) : AstList(children) {
        nodeName = __func__;
    }

    string getClassName() { return static_pointer_cast<Name>(children[0])->name(); }

    int32_t accept(Compiler::Visitor* visitor) override;
};

} // namespace Parser

#endif // PARSER_IMPORT_STMT_H
